package com.usefullc.crawler.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.usefullc.system.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 爬虫输出模板实体
 * @author: 星空
 * @date: 2022-12-15
 */
@ApiModel("爬虫输出模板")
@TableName("crawler_output_template")
@Data
public class OutputTemplate extends BaseEntity {

//useful_auto_generate_section_start
    @ApiModelProperty(notes = "爬虫模版ID")
    @TableField(value="`templateId`")
    private Long templateId;

    @ApiModelProperty(notes = "模板名称")
    @TableField(value="`name`")
    private String name;

    @ApiModelProperty(notes = "描述")
    @TableField(value="`description`")
    private String description;

    @ApiModelProperty(notes = "链接/文件存储路径")
    @TableField(value="`url`")
    private String url;

    @ApiModelProperty(notes = "用户(jdbc)")
    @TableField(value="`user`")
    private String user;

    @ApiModelProperty(notes = "密码(jdbc)")
    @TableField(value="`password`")
    private String password;

    @ApiModelProperty(notes = "类型(http,jdbc,file-excel)")
    @TableField(value="`type`")
    private String type;

    @ApiModelProperty(notes = "方法(http)")
    @TableField(value="`method`")
    private String method;

    @ApiModelProperty(notes = "头部(http/excel)")
    @TableField(value="`header`")
    private String header;

    @ApiModelProperty(notes = "数据包（http->body; jdbc->sql）")
    @TableField(value="`packet`")
    private String packet;


    @ApiModelProperty(notes = "输出字段配置")
    @TableField(value="`fieldsConfig`")
    private String fieldsConfig;

    @ApiModelProperty(notes = "输出字段选中配置")
    @TableField(value="`fieldsCheckedConfig`")
    private String fieldsCheckedConfig;

    @ApiModelProperty(notes = "过滤条件")
    @TableField(value="`filterCondition`")
    private String filterCondition;

    @ApiModelProperty(notes = "范围（0 公共，1 私有）")
    @TableField(value="`scope`")
    private Integer scope;

    @ApiModelProperty(notes = "用户ID")
    private Long userId;

//useful_auto_generate_section_end

}
